<?php
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| H5 Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', function () {
    return response()->json(['welcome H5']);

});

//登录接口
Route::namespace('Login')->prefix('login')->group(function () {
    require __DIR__ . '/h5/login.php';

});

//用户校验
Route::middleware(['h5.auth'])->group(function () {

    //用户模块接口
    Route::namespace('Login')->prefix('user')->group(function () {
        require __DIR__ . '/h5/user.php';

    });

});
